package com.hash;

import java.util.Date;

import com.data.person;

public class hashCodeCls {
	public static void main(String[] args){
		perequ();
		print("");
		perequ2();
	}

	private static void print(Object obj) {
		Date date=new Date();
		System.out.println(date+": "+obj);		
	}

	public static void perequ(){
		person per1=new person();
		print(per1.hashCode());
		person per2=per1;
		print(per2.hashCode());
	}
	public static void perequ2(){
		person per1=new person(); 
		person per2=new person();
		print(per2.hashCode());
		print(per1.hashCode());
	}
}
